import { IsString, IsNumberString ,IsNotEmpty,ValidationOptions, IsNumber, IsBoolean, isNumber} from 'class-validator';
import { ApiProperty} from '@nestjs/swagger';

/**新增相册的实体 */
export class AddPhoto {
	@ApiProperty({
		description:"用户id"
	})
	@IsString()
	@IsNotEmpty()
	user: string;

	@ApiProperty({
		description:"相册url"
	})
	@IsString()
	@IsNotEmpty()
	url: string;
}

/**编辑相册的实体 */
export class EditPhoto {
	@ApiProperty({
		description:"相册id"
	})
	@IsNotEmpty()
	@IsString()
	id: string;

	@ApiProperty({
		description:"相册url"
	})
	@IsString()
	@IsNotEmpty()
	url: string;
}

/**删除相册的实体 */
export class DeletePhoto {
	@ApiProperty({
		description:"相册id"
	})
	@IsNotEmpty()
	@IsString()
	id: string;
}
